package com.whacos.modules.system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.whacos.common.entity.BaseEntity;
import lombok.Data;
import lombok.ToString;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author xiongdun
 * @description 系统日志
 * @since 2018/11/17 17:11
 */
@TableName(value = "t_sys_role_menu")
@Data
@ToString
public class SysRoleMenu extends BaseEntity {

    private static final long serialVersionUID = -8174784656897349824L;
    // 角色id
    private Long roleId;
    //
    private Long menuId;

    // 创建者
    @TableField(exist = false)
    private Long createdBy;
    // 创建时间
    @TableField(exist = false)
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdDate;
    // 更新者
    @TableField(exist = false)
    private Long updatedBy;
    // 更新时间
    @TableField(exist = false)
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatedDate;
    // 备注信息
    @TableField(exist = false)
    private String remark;
    // 删除标记
    @TableField(exist = false)
    private Integer delFlag;

}
